//
//  BuildDetailTableViewCell.m
//  Tospur-text
//
//  Created by Tospur_hewei on 15/9/29.
//  Copyright (c) 2015年 Tospur_hewei. All rights reserved.
//

#import "BuildDetailTableViewCell.h"
#import "SearchModel.h"
@implementation BuildDetailTableViewCell
/*
@property (nonatomic,strong) NSString *GardenName;//楼盘名称
@property (nonatomic,strong) NSString *GardenTotalPr;//总价
@property (nonatomic,strong) NSString *GardenAvgPr;//均价
@property (nonatomic,strong) NSString *GardenPic;//横版Img
@property (nonatomic,strong) NSString *GardenAdd;//地址
@property (nonatomic,strong) NSString *GardenSale;//最新优惠活动
@property (nonatomic,strong) NSString *GardenExpAmount;//佣金
*/
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.GardenPic = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 355, 160)];
        //self.GardenPic.image = [UIImage imageNamed:@"楼.jpg"];
        [self.contentView addSubview: _GardenPic];
        
        self.GardenName = [[UILabel alloc]initWithFrame:CGRectMake(10, 160, 355, 30)];
        self.GardenName.textAlignment = NSTextAlignmentCenter;
       // self.GardenName.text = @"东方明珠";
        [self.GardenPic addSubview:_GardenName];
    }
    return self;
}

- (void)setValueForModel:(SearchModel *)model
{
    self.GardenName.text = model.GardenName;
    //self.GardenPic.image = model.GardenPic
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
